<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"
           %><%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"
           %><%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"
           %><%@ taglib tagdir="/WEB-INF/tags" prefix="cohesion"
           %><%@ page contentType="text/html;charset=ISO-8859-1"
           %><html:html xhtml="true">
    <head>
        <html:base/>
        <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
        <link rel="stylesheet" type="text/css" href="../css/style2.css"></link>
        <script type="text/JavaScript" src="../scripts/popups.js"></script>
        <title>DDP-Online - <bean:message key="V_EnviarCorreo.title"/></title>
    </head>
    <body onload="alertas('${empty msg ? "" : msg}')">
        <div id="wrapper">
            <div id="header"></div>
            <logic:equal parameter="vengoDe" value="PAI">
                <%@ include file="../includes/includeMenuPAI.jsp" %>
            </logic:equal>
            <logic:equal parameter="vengoDe" value="PAIConsultaAvanzada">
                <%@ include file="../includes/includeMenuPAI.jsp" %>
            </logic:equal>
            <logic:equal parameter="vengoDe" value="PAIEstadisticas">
                <%@ include file="../includes/includeMenuPAI.jsp" %>
            </logic:equal>
            <logic:equal parameter="vengoDe" value="PAA">
                <%@ include file="../includes/includeMenuPAA.jsp" %>
            </logic:equal>
            <logic:equal parameter="vengoDe" value="PAAEstadisticas">
                <%@ include file="../includes/includeMenuPAA.jsp" %>
            </logic:equal>
            <logic:equal parameter="vengoDe" value="PAS">
                <%@ include file="../includes/includeMenuPAS.jsp" %>
            </logic:equal>
            <logic:equal parameter="vengoDe" value="PASEstadisticas">
                <%@ include file="../includes/includeMenuPAS.jsp" %>
            </logic:equal>
            <div id="page">
                <div id="content">
                    <% request.setAttribute("_vacio", new Object[0]);%>
                    ${empty msg ? "" : msg}
                    <h2>Envio de Correo Electr&oacute;nico</h2>
                    <br />

                    <html:form action="/A_EnviarCorreo.do" method="post">
                        <p><label for="643146">Destinatarios</label>
                            <html:text styleId="643146" property="destinatario" size="70"/>
                        </p>
                        <p><label for="643149">Asunto</label>
                            <html:text styleId="643149" property="asunto" size="78"/>
                        </p>
                        <logic:equal parameter="vengoDe" value="PAIConsultaAvanzada">
                            <logic:notEmpty name="baosPDF">
                                <p>Archivo Adjunto: ${empty nombrePDF ? _vacio : nombrePDF}</p>
                            </logic:notEmpty>
                        </logic:equal>
                        <logic:equal parameter="vengoDe" value="PAIEstadisticas">
                            <logic:notEmpty name="baosPDF">
                                <p>Archivo Adjunto: ${empty nombrePDF ? _vacio : nombrePDF}</p>
                            </logic:notEmpty>
                        </logic:equal>

                        <p><label for="643152">Mensaje</label></p>
                        <p><html:textarea styleId="643152" property="mensaje" cols="63" rows="10"></html:textarea></p>

                        <p><html:submit styleClass="button">Enviar Correo</html:submit>
                            &nbsp;&nbsp;
                            <logic:equal parameter="vengoDe" value="PAI">
                                <html:link action="/A_Pre_PAI.do">Cancelar</html:link>
                            </logic:equal>
                            <logic:equal parameter="vengoDe" value="PAIConsultaAvanzada">
                                <html:link action="/A_Pre_PAI.do">Cancelar</html:link>
                            </logic:equal>
                            <logic:equal parameter="vengoDe" value="PAIEstadisticas">
                                <html:link action="/A_Pre_PrincipalEstadisticasPAI.do">Cancelar</html:link>
                            </logic:equal>
                            <logic:equal parameter="vengoDe" value="PAA">
                                <html:link action="/A_Pre_PAA.do">Cancelar</html:link>
                            </logic:equal>
                            <logic:equal parameter="vengoDe" value="PAAEstadisticas">
                                <html:link action="/A_Pre_PrincipalEstadisticasPAA.do">Cancelar</html:link>
                            </logic:equal>
                            <logic:equal parameter="vengoDe" value="PAS">
                                <html:link action="/A_Pre_PAS.do">Cancelar</html:link>
                            </logic:equal>
                            <logic:equal parameter="vengoDe" value="PASEstadisticas">
                                <html:link action="/A_Pre_PrincipalEstadisticasPAS.do">Cancelar</html:link>
                            </logic:equal>
                        </p>
                    </html:form>
                </div>
                <logic:equal parameter="vengoDe" value="PAI">
                    <%@ include file="../includes/includeSidebarPAI.jsp" %>
                </logic:equal>
                <logic:equal parameter="vengoDe" value="PAIConsultaAvanzada">
                    <%@ include file="../includes/includeSidebarPAI.jsp" %>
                </logic:equal>
                    <logic:equal parameter="vengoDe" value="PAIEstadisticas">
                    <%@ include file="../includes/includeSidebarPAI.jsp" %>
                </logic:equal>
                <logic:equal parameter="vengoDe" value="PAA">
                    <%@ include file="../includes/includeSidebarPAA.jsp" %>
                </logic:equal>
                    <logic:equal parameter="vengoDe" value="PAAEstadisticas">
                    <%@ include file="../includes/includeSidebarPAA.jsp" %>
                </logic:equal>
                <logic:equal parameter="vengoDe" value="PAS">
                    <%@ include file="../includes/includeSidebarPAS.jsp" %>
                </logic:equal>
                    <logic:equal parameter="vengoDe" value="PASEstadisticas">
                    <%@ include file="../includes/includeSidebarPAS.jsp" %>
                </logic:equal>
            </div>
            <%@ include file="../includes/includeFooter.jsp" %>
        </div>
    </body>
</html:html>
